<?php
/*
 * Created on May 14, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

?>
<?php  $this->load->view('admin/comment/link_bar');?>

<form action="<?php echo site_url('admin/comment/save')?>" method="post" enctype="multipart/form-data">
	<table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
	<tr>
		<td style="padding:5px" colspan="2">
			
			<?php echo $error_message?>
		</td>
	</tr>
	
	<tr>
		<td style="padding:5px">Thông tin:</td>
		<td>
		<?php 
		$from = '';
		$from = !empty($fullname) ? $fullname : '';
		$from .= !empty($address) ? '<br>Add:' . $address : '';
		$from .= !empty($phone) ? '<br>Phone:' . $phone : '';
		$from .= !empty($email) ? '<br>Email:' . $email : '';
		echo '<b>'.$from . '</b> <br><br>';
		?>
		</td>
	</tr>
	
	<tr>
		<td style="padding:5px">Nội dung:</td>
		<td>
		<textarea class="text" name="txtContent" id="txtContent" cols="60" rows="10"><?php echo $content?></textarea>
		</td>
	</tr>
	                         
	<tr>
		<td style="padding:5px"><?php echo lang('active')?></td>
		<td>
		<input type="checkbox" class="checkbox" <?php echo $active==1? 'checked' : ''?> name="active" value="1" />
		</td>
	</tr>
	<tr>
		<td></td>
		<td> 
		<?php echo lang('indicates_a_required_field');?>
 		</td>
	</tr>
	<tr>
		<td>
		</td>
		<td>
		<input type="hidden" name="txtID" id="txtID" value="<?php echo $id?>"/>
<p> <input type="submit" class="submit button" name="btSave" value="<?php echo lang('save')?>" /> </p>
		</td>
	</tr>
	
</table>

</form>